package com.yike.user.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 店铺表
 *
 * @author Sakura
 * @since 2024-08-26
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "代理商分佣详细信息")
public class AgentCommissionInfoVo implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("总分佣金额")
    private BigDecimal totalAmount = BigDecimal.ZERO;

    @ApiModelProperty("可用金额")
    private BigDecimal withdrawableAmount = BigDecimal.ZERO;

    @ApiModelProperty("审核金额")
    private BigDecimal applyAmount = BigDecimal.ZERO;

    public void setTotalAmount(BigDecimal totalAmount) {
        if (totalAmount == null) {
            this.totalAmount = BigDecimal.ZERO;
        } else {
            this.totalAmount = totalAmount;
        }
    }

    public void setActualAmount(BigDecimal withdrawableAmount) {
        if (withdrawableAmount == null) {
            this.withdrawableAmount = BigDecimal.ZERO;
        } else {
            this.withdrawableAmount = withdrawableAmount;
        }
    }

}
